<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var x=1;
    function test() {
        this.x=1;
    };
    test();
    alert(x)j6t
</script>
</body>
</html>